﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.Data;

namespace CSF.Financial.Data
{
    public class Payment : Transaction
    {
        public int CustomerId { get; set; }
        public int? SOItemId { get; set; }
        public int PaymentMethodId { get; set; }
        public DateTime PayDate { get; set; }

        public string CurrencyCode { get; set; }
        public decimal Amount { get; set; }
        public string Comment { get; set; }

        /// <summary>
        /// 是否已被确认
        /// </summary>
        public bool IsConfirmed { get; set; }
        /// <summary>
        /// 确认人
        /// </summary>
        public string ConfirmBy { get; set; }
        /// <summary>
        /// 确认时间
        /// </summary>
        public DateTime? ConfirmTime { get; set; }
        /// <summary>
        /// 电子交易的唯一交易标识号，防止重复处理
        /// </summary>
        public string TxnId { get; set; }
    }
}
